package com.zyy.Household_expenditure.common.exceptionhandler;

/**
 * @Description: 自定义异常类
 *  extends RuntimeException继承异常类使之成为异常类
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor  //有参数构造器
@NoArgsConstructor //生成无参数构造
public class MyException extends RuntimeException{
    private  Integer code;//状态码
    private  String msg;//输出信息
}
